const prodConfig = require("./prod.config");
module.exports = {
	...prodConfig,
	devServer: {
		open:true,// 自动打开浏览器
		host:"zhangpeiyue.com",
		port:80,
		proxy:[
			{
				// https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json
				// 请求以/maoyan开头即会使用该代理
				context:"/maoyan",
				// 请求的目标服务器
				target:"https://i.maoyan.com",
				changeOrigin:true,
				// 地址进行重写
				pathRewrite:{
					"^/maoyan":""
				}
			}
		]
	},
	mode:"development"
}